body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.left-panel {
    flex: 1;
    min-width: 0;
}

.right-panel {
    width: 300px;
    flex-shrink: 0;
}

.right-panel h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
}

select,
input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.checkbox-group {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 120px);
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: white;
}

.checkbox-item {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #e0e0e0;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

.checkbox-item.checked {
    background: #1976d2;
    color: white;
}

button {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1565c0;
}

#startBtn {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4caf50;
}

#startBtn:hover {
    background-color: #388e3c;
}

.progress-container {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
    margin-bottom: 20px;
}

.progress-bar {
    height: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress {
    height: 100%;
    background-color: #4caf50;
    width: 0;
    transition: width 0.3s;
}

#progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.log-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

#log {
    flex: 1;
    margin-top: 10px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #e0e0e0;
    min-height: 0;
}

#log div {
    margin-bottom: 5px;
    word-break: break-all;
    padding: 4px 8px;
}

#log div:hover {
    background-color: #f0f0f0;
}

.dir-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dir-dialog-content {
    background-color: white;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.dir-dialog-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dir-dialog-body {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
}

.dir-dialog-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.current-path {
    padding: 10px;
    background-color: #f5f5f5;
    margin-bottom: 10px;
    word-break: break-all;
}

.dir-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.dir-item:hover {
    background-color: #f0f0f0;
}

.checkbox-controls {
    display: inline-block;
    margin-left: 10px;
}

.checkbox-controls button {
    padding: 4px 8px;
    margin-right: 5px;
    font-size: 12px;
    background-color: #f0f0f0;
    color: #333;
}

.checkbox-controls button:hover {
    background-color: #e0e0e0;
}

.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background-color: white;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: dialogShow 0.3s ease-out;
}

@keyframes dialogShow {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    text-align: center;
}

.dialog-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    padding: 4px;
    cursor: pointer;
    transition: color 0.3s;
}

.dialog-header button:hover {
    color: #333;
    background: none;
}

.dialog-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.dialog-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.dialog-footer button {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #4caf50;
    transition: background-color 0.3s;
}

.dialog-footer button:hover {
    background-color: #388e3c;
}

.error-item {
    color: #c62828;
    margin: 5px 0;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

#error-dialog .dialog-content {
    border: 2px solid #ffcdd2;
    border-radius: 12px;
}

#error-dialog .dialog-header {
    background-color: #ffebee;
    border-radius: 10px 10px 0 0;
}

#error-dialog .dialog-header h3 {
    color: #c62828;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button:disabled:hover {
    background-color: #cccccc;
}